package cn.tianya.irock.data.model;


import java.util.Date;

import cn.tianya.irock.core.DateTime;
import cn.tianya.irock.util.ExtendedAttributes;


public class Post extends ExtendedAttributes {
	
	private int postId;
	private int sectionId;
	private int threadId;
	private int parentId;	
	private int views; 
	private int replies;
	private int userId;
	private long ipLocation;
	
	private boolean locked;
	private boolean approved;
	
	private String subject = "";
	private String body = "";
	private String icon = "";
	private String summary = "";
	private String keywords = "";
	private String url = "";
	//private Section section;
	private Date postDate;
	
	public Post() {
		approved = true;
		postDate = new Date(DateTime.now().getTime());
		
		icon = "";
		summary = "";
	}
	
	public int getPostId() {
		return postId;
	}
	public void setPostId(int postId) {
		this.postId = postId;
	}
	public int getThreadId() {
		return threadId;
	}
	public void setThreadId(int threadId) {
		this.threadId = threadId;
	}
	public int getViews() {
		return views;
	}
	public void setViews(int views) {
		this.views = views;
	}
	public int getReplies() {
		return replies;
	}
	public void setReplies(int replies) {
		this.replies = replies;
	}
	public long getIPLocation() {
		return ipLocation;
	}
	public void setIPLocation(long ipLocation) {
		this.ipLocation = ipLocation;
	}
	public boolean isApproved() {
		return approved;
	}
	public void setApproved(boolean approved) {
		this.approved = approved;
	}
	public boolean isLocked() {
		return locked;
	}
	public void setLocked(boolean locked) {
		this.locked = locked;
	}
	public int getParentId() {
		return parentId;
	}
	public void setParentId(int parentId) {
		this.parentId = parentId;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getBody() {
		return body;
	}
	public void setBody(String body) {
		this.body = body;
	}
	public String getUrl() {
		return this.url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getSummary() {
		return summary;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public Date getPostDate() {
		return postDate;
	}
	public void setPostDate(Date postDate) {
		this.postDate = postDate;
	}
	public int getSectionId() {
		return sectionId;
	}
	public void setSectionId(int sectionId) {
		this.sectionId = sectionId;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public String getKeywords() {
		return this.keywords;
	}
	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}
}
